<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>欢迎登陆</el-breadcrumb-item>
    </el-breadcrumb>


    <el-row :gutter="20">
      <el-col :span="12"><div class="grid-content bg-purple">
        <el-card :body-style="{ padding: '0px' }">
          <img src="../assets/log.png" class="image">
          <div class="text" >
            <span>尊敬的用户</span><br/>
            <span>Welcome！</span>
          </div>
          <div class="bottom clearfix">
            <time class="time">{{ currentDate }}</time>
          </div>
        </el-card>
      </div></el-col>
      <el-col :span="12"><div class="grid-content bg-purple">
        <el-table
          :data="tableData"
          height="270"
          border
          style="width: 100%">
          <el-table-column
            prop="name"
            label="通知"
            width="630">
          </el-table-column>
          <el-table-column
            prop="date"
            label="时间"
            width="180">
          </el-table-column>
        </el-table>
      </div></el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="8"><div class="grid-content bg-purple">
        <el-card class="box-card1">
          <div slot="header" class="clearfix1">
            <span>消息</span>
            <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
          </div>
          <div v-for="o in 4" :key="o" class="text1 item1">
            {{'列表内容 ' + o }}
          </div>
        </el-card>
      </div></el-col>
      <el-col :span="8"><div class="grid-content bg-purple">
        <el-card class="box-card1">
          <div slot="header" class="clearfix1">
            <span>备忘录</span>
            <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
          </div>
          <div v-for="o in 4" :key="o" class="text1 item1">
            {{'列表内容 ' + o }}
          </div>
        </el-card>
      </div></el-col>
      <el-col :span="8"><div class="grid-content bg-purple">
        <el-card class="box-card1">
          <div slot="header" class="clearfix1">
            <span>卡片</span>
            <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
          </div>
          <div v-for="o in 4" :key="o" class="text1 item1">
            {{'列表内容 ' + o }}
          </div>
        </el-card>
      </div></el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="16"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
    </el-row>
  </div>
</template>
<script>
    export default {
        data() {
            return {
                currentDate: new Date(),
                tableData: [{
                    name: '康梦玲发表重要讲话',
                    date: '2016-05-03',
                }, {
                    date: '2016-05-02',
                    name: '康梦玲发表重要讲话',
                }, {
                    date: '2016-05-04',
                    name: '康梦玲发表重要讲话',
                }, {
                    date: '2016-05-01',
                    name: '康梦玲发表重要讲话',
                }, {
                    date: '2016-05-08',
                    name: '康梦玲发表重要讲话',
                }, {
                    date: '2016-05-06',
                    name: '康梦玲发表重要讲话',
                }, {
                    date: '2016-05-07',
                    name: '康梦玲发表重要讲话',
                }]
            };
        }
    }
</script>

<style lang="less" scoped>
  .el-row {
    margin-top: 20px;
    margin-bottom: 20px;
  &:last-child {
     margin-bottom: 0;
   }
  }
  .el-col {
    border-radius: 4px;
  }
  .bg-purple-dark {
    background: #99a9bf;
  }
  .bg-purple {
    background: #d3dce6;
  }
  .bg-purple-light {
    background: #e5e9f2;
  }
  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
  .text{
    font-size: 25px;
    padding: 14px;
    margin-top: 10px;
    margin-left: 10px;

  }
  .time {
    position: absolute;
    font-size: 10px;
    padding: 14px;
    margin-left: 10px;
    color: #999;
    margin-top: 130px;
  }

  .bottom {
    line-height: 12px;
  }


  .image {
    padding: 14px;
    float: right;
    width: 30%;
    display: block;
  }

  .clearfix:before,
  .clearfix:after {
    display: table;
    content: "";
  }

  .clearfix:after {
    clear: both
  }

  .text1 {
    font-size: 14px;
  }

  .item1 {
    margin-bottom: 18px;
  }

  .clearfix1:before,
  .clearfix1:after {
    display: table;
    content: "";
  }
  .clearfix1:after {
    clear: both
  }

  .box-card1 {
    width: 550px;
  }
</style>
